package com.ryder.book_cycle.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ryder.book_cycle.entity.BookOrder;
import com.ryder.book_cycle.entity.BookOrderDTO;

import java.util.Map;

/**
 * 描述: 订单表(BookOrder)表服务接口
 * 
 * @author Ryder
 * @version 1.0
 * @since 1.0 // 版本号，指明从哪个版本开始
 * 更新日期: 2025-07-13 00:05:18
 */
public interface BookOrderService extends IService<BookOrder> {

    boolean add(BookOrder entity);

    Page<BookOrderDTO> selectOrderPage(Page<BookOrder> page, String bookName, String buyerName, Long merchantId);

    boolean updateBookOrder(BookOrder entity, Long status);

    BookOrder selectOrderDetailById(Long id);

    Page<BookOrderDTO> selectUserOrderPage(Page<BookOrder> page, String bookName, Long buyerId);

}
